<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link
      rel="stylesheet"
      media="screen and (max-width:576px)"
      href="css/index.css"
    />
  </head>
  <body>
    <div class="header">
      <div class="user">
        <span class="login"></span>
      </div>
      <div class="middle">
        <span class="logo"></span>
      </div>
      <div class="email">
        <span class="emailInfo"> 邮箱 </span>
      </div>
    </div>
    <div class="tab-bar">
      <ul class="tab-list">
        <li class="">要闻</li>
        <li class="active rec">推荐</li>
        <li class="">原创</li>
        <li class="">热点</li>
      </ul>
    </div>
    <div class="list">
      <ul class="listUl">
        <li><a href="#">新闻</a></li>
        <li><a href="#">抗疫</a></li>
        <li><a href="#">娱乐</a></li>
        <li><a href="#">体育</a></li>
        <li><a href="#">财经</a></li>
        <li><a href="#">图片</a></li>
        <li><a href="#">汽车</a></li>
        <li><a href="#">军事</a></li>
        <li><a href="#">直播</a></li>
        <li><a href="#">视频</a></li>
        <li><a href="#">科技</a></li>
        <li><a href="#">房产</a></li>
        <li><a href="#">手机</a></li>
        <li><a href="#">星闻</a></li>
        <li><a href="#">数码</a></li>
        <li><a href="#">本地</a></li>
        <li><a href="#">网易号</a></li>
        <li><a href="#">段子</a></li>
        <li><a href="#">时尚</a></li>
        <li><a href="#">家居</a></li>
        <li><a href="#">跟帖</a></li>
        <li><a href="#">游戏</a></li>
        <li><a href="#">体育</a></li>
        <li><a href="#">公开课</a></li>
        <li><a href="#">健康</a></li>
      </ul>
      <span class="arrow"> </span>
    </div>
    <div class="main">
      <div class="item">
        <a href="#" class="article">
          <h3>习近平在2020年服贸会峰会上发表视频致辞</h3>
          <div class="bottom">
            <span class="news">央视网 </span>
            <span class="time">13小时前</span>
            <span class="reply">1760跟贴</span>
          </div>
        </a>
      </div>
      <div class="item">
        <a href="#" class="article">
          <h3>习近平在服贸会峰会上的视频致辞金句</h3>
          <div class="bottom">
            <span class="news">新华网</span>
            <span class="time">13小时前</span>
            <span class="reply">810跟贴</span>
          </div>
        </a>
      </div>
      <div class="item">
        <a href="#" class="article">
          <h3>美媒再次发文揭示蓬佩奥“三宗罪”</h3>
          <div class="bottom">
            <span class="news">环球网资讯</span>
            <span class="time">前天</span>
          </div>
        </a>
      </div>
      <div class="item">
        <a href="#" class="article">
          <h3>这几股或暴涨，建议满仓买入!反正免费，立即查看</h3>
          <div class="ad">
            <img src="./img/6.jpg" alt="" />
            <img src="./img/7.jpg" alt="" />
            <img src="./img/8.jpg" alt="" />
          </div>
          <div class="adtext">广告</div>
        </a>
      </div>
      <div class="item">
        <a href="#" class="articleN">
          <div class="info">
            <h3>中印防长在莫斯科会晤 魏凤和：一寸领土也不能丢！</h3>
            <div class="bottom clearfix">
              <span class="news">环球网资讯-环球网</span>
              <span class="error"></span>
            </div>
          </div>
          <div class="newPic">
              <img src="./img/9.webp" alt="">
          </div>
        </a>
      </div>
      <div class="item">
        <a href="#" class="articleN">
          <div class="info">
            <h3>拜登：其实是黑人发明了电灯泡，而不是那个叫爱迪生的白人</h3>
            <div class="bottom clearfix">
              <span class="news">海外网</span>
              <span class="time">14消失前</span>
              <span class="reply">1.9万跟帖</span>
              <span class="error"></span>
            </div>
          </div>
          <div class="newPic">
              <img src="./img/10.webp" alt="">
          </div>
        </a>
      </div>
      <div class="item">
        <a href="#" class="articleN">
          <div class="info">
            <h3>人民锐评：如此煽动仇恨，港大学生会是在与文明为敌</h3>
            <div class="bottom clearfix">
              <span class="news">澎湃新闻</span>
              <span class="time">15消失前</span>
              <span class="reply">3.0万跟帖</span>
              <span class="error"></span>
            </div>
          </div>
          <div class="newPic">
              <img src="./img/11.webp" alt="">
          </div>
        </a>
      </div>
      <div class="item">
        <a href="#" class="articleN">
          <div class="info">
            <h3>1280亿武汉半导体项目厂区荒草丛生 曾巨资购光刻机</h3>
            <div class="bottom clearfix">
              <span class="news">每日经济新闻</span>
              <span class="time">15小时前</span>
              <span class="reply">3.0万跟帖</span>
              <span class="error"></span>
            </div>
          </div>
          <div class="newPic">
              <img src="./img/12.webp" alt="">
          </div>
        </a>
      </div>
      <div class="item">
        <a href="#" class="article">
          <h3>炒股最好的方法就是:看成交量+筹码分布</h3>
          <div class="ad">
            <img src="./img/13.jpg" alt="" />
            <img src="./img/14.jpg" alt="" />
            <img src="./img/15.jpg" alt="" />
          </div>
          <div class="adtext">广告</div>
        </a>
      </div>
      <div class="item">
        <a href="#" class="articleN">
          <div class="info">
            <h3>重庆全面限行后，哪个中心城区的人最倒霉？</h3>
            <div class="bottom clearfix">
              <span class="news">买房知识局</span>
              <span class="time">19小时前</span>
              <span class="reply">1838跟帖</span>
              <span class="error"></span>
            </div>
          </div>
          <div class="newPic">
              <img src="./img/16.webp" alt="">
          </div>
        </a>
      </div>
      <div class="item">
        <a href="#" class="article">
          <h3>广州惊现坑人海洋馆，这套路已经骗过大半个中国，你被坑过吗？</h3>
          <div class="ad">
            <img src="./img/17.webp" alt="" />
            <img src="./img/18.webp" alt="" />
            <img src="./img/19.webp" alt="" />
          </div>
          <div class="adtext">广告</div>
        </a>
      </div>
    </div>
    <script src="./js/jquery.js"></script>
    <script>
      $(function () {
        $(".arrow").click(function () {
          $(this).toggleClass("rotate").parent().toggleClass("toggleHeight");
        });
        $(this).scroll(function(){
            if($(this).scrollTop()>=100){
                $('.tab-bar').addClass('toggleBar').children('.tab-list').children('.rec').removeClass('active')
               
            }else{
                $('.tab-bar').removeClass('toggleBar').children('.tab-list').children('.rec').addClass('active')
            }
        })
        $('.tab-list li').click(function(){
           $('.tab-list li').not($(this)).removeClass('active rec') 
            $(this).addClass('active rec').not($(this)).removeClass('active rec');
        })
      });
    </script>
  </body>
</html>
